package jok.string;

import java.util.Scanner;

public class StringDemo2 {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String str = scanner.nextLine();

		count(str);
	}

	public static void count(String str) {

		int upperCount = 0;
		int lowerCount = 0;
		int numCount = 0;

		for (int i = 0; i < str.length(); i++) {

			char c = str.charAt(i);

			if (c >= 'A' && c <= 'Z') {
				upperCount++;
			}
			if (c >= 'a' && c <= 'z') {
				lowerCount++;
			}
			if (c >= '0' && c <= '9') {
				numCount++;
			}
		}

		System.out.println("大写字母：" + upperCount);
		System.out.println("小写字母：" + lowerCount);
		System.out.println("数字：" + numCount);
	}
}
